
package com.tiantian.mall.dao;

import com.tiantian.mall.entity.TianTianMallShoppingCartItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TianTianMallShoppingCartItemMapper {
    int deleteByPrimaryKey(Long cartItemId);

    int insert(TianTianMallShoppingCartItem record);

    int insertSelective(TianTianMallShoppingCartItem record);

    TianTianMallShoppingCartItem selectByPrimaryKey(Long cartItemId);

    TianTianMallShoppingCartItem selectByUserIdAndGoodsId(@Param("newBeeMallUserId") Long newBeeMallUserId, @Param("goodsId") Long goodsId);

    List<TianTianMallShoppingCartItem> selectByUserId(@Param("newBeeMallUserId") Long newBeeMallUserId, @Param("number") int number);

    int selectCountByUserId(Long newBeeMallUserId);

    int updateByPrimaryKeySelective(TianTianMallShoppingCartItem record);

    int updateByPrimaryKey(TianTianMallShoppingCartItem record);

    int deleteBatch(List<Long> ids);
}